package net.borlis.sample.service.db.update;

/**
 * @author alex@borlis.net
 */
public final class Schema {

    public static final String CONFIG_SCHEMA = "vito_config";
    /**
     * prefixes for lifecycle state schema to use with table names
     */
    public static final String LAST_LIVE = "ll_";
    public static final String LIVE_COPY = "lc_";
    public static final String WAITING_FOR_UPLOAD = "wfu_";
    public static final String DELETED = "del_";

    /**
     * PREFIX for general schema version
     */
    private static final String PREFIX = "test_sample" + "_";
    /**
     * general schema names with version prefixes
     */
    public static final String COMMON = PREFIX + "general_master";
    public static final String VITO = PREFIX + "vito";
    public static final String CONFIGURATION = PREFIX + CONFIG_SCHEMA;
    public static final String UTIL_SCHEMA = PREFIX + "dpct_util";

    public static final String NEW_COMMON = PREFIX + "new_general_master";
    public static final String NEW_PRODUCT = PREFIX + "new_product_master";
    public static final String NEW_VITO_MASTER = PREFIX + "new_vito_master";

    public static final String NEW_VITO_CONFIG_WORKING = "vito_config__working";
    public static final String NEW_VITO_CONFIG_WAITING_FOR_UPLOAD = "vito_config__waiting";
    public static final String NEW_VITO_CONFIG_LIVE_COPY = "vito_config__live";
    public static final String NEW_VITO_CONFIG_LAST_LIVE = "vito_config__last_live";

    /**
     * general staging schema names with version and version prefixes
     */
    public static final String LAST_LIVE_CONFIG = PREFIX + LAST_LIVE + CONFIG_SCHEMA;
    public static final String LIVE_COPY_CONFIG = PREFIX + LIVE_COPY + CONFIG_SCHEMA;
    public static final String WAITING_FOR_UPLOAD_CONFIG = PREFIX + WAITING_FOR_UPLOAD + CONFIG_SCHEMA;
    public static final String DELETED_CONFIG = PREFIX + DELETED + CONFIG_SCHEMA;

    public static final String PRODUCT = PREFIX + "product_master";
    public static final String HISTORY_SCHEMA = PREFIX + "history";
    public static final String LIFECYCLE_SCHEMA = PREFIX + "state_machine";

    private Schema() {
    }

}
